package club.emergency.wechat.eureka.server.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * Create with IntelliJ IDEA
 * Project Name: wechat_api
 * Package Name: club.emergency.wechat_api.eureka.server.config
 * Date: 2019/2/14
 *
 * @author: 快乐的小菌菌
 * Description:
 */
@Configuration
public class EurekaSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.csrf().disable().authorizeRequests().anyRequest().authenticated().and().httpBasic();
    }

}
